﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DataShow.check
{
    public partial class EuropeCheck : System.Web.UI.Page
    {
        protected string Name;
        protected string Interface,StatusInterface;
        protected string CheckURL = "Index.aspx";
        protected bool isForecaster = false;
        protected string IndexURL = "/Index.aspx";
        protected bool non_date_cbx = false;
        protected void Page_Load(object sender, EventArgs e)
        {
            isForecaster = Request.QueryString["isf"] != null;
            non_date_cbx = Request.QueryString["fc"] != null;
            if (isForecaster == true)
            {
                CheckURL = "/ForecasterIndex.aspx";
                IndexURL = "/ForecasterIndex.aspx";
                
            }
            if (non_date_cbx == true)
            {
                non_date.Visible = true;
            }
            if (Convert.ToBoolean(Session["isadmin"]) == true && Request.QueryString["f"]==null)
            {
                CheckURL = "ForecasterIndex.aspx";
            }
            Name = Request.QueryString["name"];
            if (!IsPostBack)
            {
                time_begin.Text = DateTime.Now.AddDays(-5).ToString("yyyy-MM-dd");
                time_end.Text = DateTime.Now.ToString("yyyy-MM-dd");
            }
            Interface = ConfigurationSettings.AppSettings["checkinterface"];
            StatusInterface = ConfigurationSettings.AppSettings["statusinterface"];
        }

        
        
    }
}